/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bullionxpress.client.view;

import com.javadocking.DockingManager;
import com.javadocking.drag.DraggerFactory;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
     * A listener that installs a dragger factory.
     */
    public class DraggingListener implements ActionListener {

        // Fields.
        private DraggerFactory draggerFactory;

        // Constructor.
        public DraggingListener(DraggerFactory draggerFactory) {
            this.draggerFactory = draggerFactory;
        }

        // Implementations of ItemListener.
        public void actionPerformed(ActionEvent actionEvent) {
            DockingManager.setDraggerFactory(draggerFactory);
        }
    }